package com.qu.waibao.account;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.alibaba.tcms.vconn.IVConnManager;
import com.qu.waibao.AppConfig;
import com.qu.waibao.MainActivity;
import com.qu.waibao.R;
import com.qu.waibao.base.BaseActivity;

import butterknife.BindView;
import butterknife.OnClick;

public class IdentifyActivity extends BaseActivity implements View.OnClickListener{
    private Intent intent;
    @Override
    protected int getContentView() {
        return R.layout.activity_register;
    }

    @Override
    protected void initWidget() {
        super.initWidget();
    }

    @Override
    protected void initData() {
        super.initData();
    }
    @OnClick({R.id.tv_shop,R.id.tv_xiu,R.id.tv_user})
    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.tv_shop: //商家
                AppConfig.saveInt("card",3);
                intent = new Intent(this,RegisterActivity.class);
                intent.putExtra("type",1);
                startActivity(intent);
                break;
            case R.id.tv_xiu: //修理工
                AppConfig.saveInt("card",2);
                intent = new Intent(this,RegisterActivity.class);
                intent.putExtra("type",1);
                startActivity(intent);
                break;
            case R.id.tv_user: //车主
                AppConfig.saveInt("card",1);
                intent = new Intent(this,RegisterActivity.class);
                intent.putExtra("type",1);
                startActivity(intent);
                break;
        }
    }


}
